﻿<UserControl x:Class="Fotofly.PhotoViewer.ImageRegionPanel" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="400" Height="300" Opacity="0">
    <StackPanel x:Name="workingPanel">
        <Canvas Opacity="1" Background="Transparent" x:Name="regionHotSpot" Cursor="hand" MouseEnter="RegionHotSpot_MouseEnter" MouseLeftButtonDown="RegionHotSpot_MouseLeftButtonDown" MouseLeave="RegionHotSpot_MouseLeave">
            <Rectangle x:Name="regionHotSpotRectangle" Opacity="255" StrokeThickness="0" Stroke="DarkGray" VerticalAlignment="Center" HorizontalAlignment="Center" Cursor="hand"
                        MouseEnter="RegionHotSpot_MouseEnter" MouseLeftButtonDown="RegionHotSpot_MouseLeftButtonDown" MouseLeave="RegionHotSpot_MouseLeave" />
        </Canvas>
        <Canvas Visibility="Collapsed" Name="paddingCanvas" Background="White" Opacity="0" />
        <Canvas Visibility="Collapsed" Name="labelCanvas" Height="20">
            <Rectangle x:Name="nameBox" RadiusX="14" RadiusY="14" Canvas.Left="0" Canvas.Top="0" Fill="LightGray" Opacity="0.7" Stroke="DarkGray"/>
            <TextBlock x:Name="nameText" FontSize="12" Canvas.Left="0" Canvas.Top="6" />
        </Canvas>
    </StackPanel>
</UserControl>
